home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 16 / qmac11a.zip / MACROS.MIS < prev    next >
Text File  |  1988-04-17  |  3KB  |  59 lines

  1. * Miscellaneous macros I've found useful. I keep these in my
  2. * CONFIG.DAT file (which I've renamed as QEDHELP.DAT, for use in
  3. * the @h macro shown below.)
  4. *
  5. * The exact behavior of some of these macros depends on the Insert
  6. * and Indent modes. Also, some of them get weird if you try to use
  7. * them on the last line of the file, because they try to cursor down
  8. * out of the file, which they can't. QEdit 2 makes it easy to clean
  9. * up after them, tho. :-)
  10. *
  11. * @c(opy) copies the char in the column above, then moves into the same
  12. * column on the lower line. It's very handy for working with tables, moving
  13. * columns of figures right, etc.
  14.  
  15. @c macro_begin get_prev cursor_left cursor_down
  16.  
  17. * @d(up) copies the "word" (as QE2 interprets it) at the cursor to the line
  18. * below. It's real handy for making sequential WriteLn(' commands, etc.
  19.  
  20. @d macro_begin mark_block_begin word_right mark_block_end word_left cursor_down copy_block unmark_block
  21.  
  22. * @g(obble) deletes the char at the cursor and moves down a line, staying in
  23. * the same column. It works real good for moving columns of figures left, etc.
  24. * It fails when the cursor is past the end of the line--it gobbles up the
  25. * end-of-line and joins the next line to the current one.
  26.  
  27. @g macro_begin del_ch cursor_down
  28.  
  29. * @h(elp) reads my CONFIG.DAT file into QE2 for use as a help file. I prefer
  30. * that to using QE2's own help file capability, because I can use QE2's great
  31. * search command to find what I need help on, and if I wish I can reassign
  32. * commands to different keys while I'm thinking about it. (Note that the use
  33. * of * comments in your .DAT file lets you make it a complete help file.) A
  34. * similar macro could be used to load any particular text file that you
  35. * had frequent use for.
  36.  
  37. @h macro_begin edit_file 'c:\wp\qedhelp.dat' return
  38.  
  39. * @i(nsert) inserts spaces at the cursor, similar to the way @c acts.
  40.  
  41. @i macro_begin ' ' cursor_left cursor_down
  42.  
  43. * @m(acro) loads a macro file named MACROS.QED from the current directory.
  44. * This lets me leave specialized macro files scattered around the disk,
  45. * for the applications particular to each subdirectory, then load them without
  46. * having to remember their names or type them it.
  47.  
  48. @m macro_begin main_menu "MRmacros.qed" return
  49.  
  50. * ^i simulates the type of tabbing that the Borland editors normally do: the
  51. * cursor moves below the first character of the next word in the line above.
  52. * I assign this to ^i and leave the Tab and ShiftTab alone, so I can use
  53. * ^i for "turbo tabbing" and Tab/ShiftTab for tabbing to fixed positions like
  54. * QE2 does. (QE1 had turbo tabs. Perhaps a later release of QE2 will make this
  55. * macro obsolete.)
  56.  
  57. ^i macro_begin cursor_up word_right cursor_down
  58.  
  59.